# 幸运数字6

def luck_print():
    size=int(input("输入最大数字:"))
    nums=[]
    lucky=[]
    for i in range(1,size+1):
        nums.append(i)
        if i%6==0:
            lucky.append(i)
    print(f"nums={nums}")
    print(f"lucky={lucky}")

luck_print()